package com.nit.lab.service.basic;

import com.nit.lab.dto.basic.StudentDTO;
import com.nit.lab.dto.utils.TableReqDTO;
import com.nit.lab.dto.utils.TableRspDTO;

import java.util.List;

/**
 * @文件名：StudentService
 * @创建人: lxr
 * @创建时间: 2020/3/23
 * @描述:
 */

public interface StudentService {
    /**
     * @Description: 获取表格数据
     * @Author: lxr
     * @Date: 2020/03/23
     */
    TableRspDTO list4Table(TableReqDTO tableReqDTO) throws Exception;

    /**
     * @Description: 新增学生记录
     * @Author: lxr
     * @Date: 2020/03/23
     */
    Integer add(StudentDTO studentDTO) throws Exception;

    /**
     * @Description: 批量新增学生记录
     * @Author: lxr
     * @Date: 2020/03/30
     */
    Integer addStudents(List<StudentDTO> studentDTOList) throws Exception;

    /**
     * @Description: 验证studentCode的唯一性
     * @Author: lxr
     * @Date: 2020/03/23
     */
    StudentDTO loginCheck(String studentCode) throws Exception;

    /**
     * @Description: 更新学生信息
     * @Author: lxr
     * @Date: 2020/03/23
     */
    Integer update(StudentDTO studentDTO) throws Exception;

    /**
     * @Description: 删除学生信息
     * @Author: lxr
     * @Date: 2020/03/23
     */
    Integer remove(String studentIds) throws Exception;

    /**
     * @Description: 重置学生密码
     * @Author: lxr
     * @Date: 2020/03/23
     */
    Integer resetPwd(Long studentId, String studentPwd) throws Exception;

    /**
     * @Description: 根据StudentId获取学生信息
     * @Author: lxr
     * @Date: 2020/03/23
     */
    StudentDTO getByStudentId(Long studentId) throws Exception;
}
